{php $CSS = array('index');$navAll=1;}

{template 'header'}
 
<!--首页广告-->
<div id="topshow" class="full">
    <div class="wrap">
        <div class="left fl">  </div>
        <div class="center fl">
        
            {ad(1)}
            <div class="new-company">
             
                <div class="content relative">
                <ul class="index_ad_img clearfix">
                  <li><a href="#"><div class="imgBox"><img src="{DT_SKIN}picture/gg1.jpg"></div></a></li>
                  <li><a href="#"><div class="imgBox"><img src="{DT_SKIN}picture/gg2.jpg"></div></a></li>
                  <li><a href="#"><div class="imgBox"><img src="{DT_SKIN}picture/gg3.jpg"></div></a></li>
                  <li><a href="#"><div class="imgBox"><img src="{DT_SKIN}picture/gg4.jpg"></div></a></li>
                  <li><a href="#"><div class="imgBox"><img src="{DT_SKIN}picture/gg5.jpg"></div></a></li>
                </ul>
                </div>
            </div>
        </div>
        <!--首页登录-->
        <div class="right fr">

            <div class="user clearfix" id="rightUser">
                <div class="headImg">
                    <div class="imgBox fl"><img class="img100" src="{useravatar($_username, 'large')}" alt="{$DT[sitename]}"></div>
                    <p>Hi，<script language="javaScript"> 
                                    now = new Date(),hour = now.getHours() 
                                    if(hour < 6){document.write("凌晨好！")} 
                                    else if (hour < 9){document.write("早上好！")} 
                                    else if (hour < 12){document.write("上午好！")} 
                                    else if (hour < 14){document.write("中午好！")} 
                                    else if (hour < 17){document.write("下午好！")} 
                                    else if (hour < 19){document.write("傍晚好！")} 
                                    else if (hour < 23){document.write("晚上好！")} 
                                    else  {document.write("夜里好！")} 
                            </script>
                    </p>
                    <p class="Themefont"> {if $_userid}<a class="Themefont" href="{$MODULE[2][linkurl]}" title="{$MG[groupname]}">我的{$DT[sitename]}</a>{else}欢迎来到jhw518.com 
                    {/if}</p>
                </div>
                <div class="clearfix"></div>
                 <!--首页登录-->
                <a href="{$MODULE[2][linkurl]}{$DT[file_login]}" class="login Themebg iconfont icon-Supplier">登录</a>
                <a href="{$MODULE[2][linkurl]}{$DT[file_register]}" class="regist OrangeBg">免费注册</a>
                <!--首页登录-->
            </div>

            		 
                    
                <div class="help-tab">
                    <div class="hd">
                        <ul class="clearfix">
                           
                            <li class="on">我是供应商</li>
                            <li>我是采购商</li>
                        </ul>
                    </div>
                    <div class="bd">
                         <ul class="Control">
                            <li class="Themebghover"><a href="{$MODULE[2][linkurl]}{$DT[file_my]}?mid=5&action=add" target="_blank" rel="nofollow">发布产品</a></li>
                            <li class="Themebghover"><a href="{DT_PATH}member/home.php" target="_blank" rel="nofollow">商铺管理</a></li>
                            <li class="Themebghover"><a href="{DT_PATH}member/my.php?mid=5" target="_blank" rel="nofollow">报价管理</a></li>
                            <li class="Themebghover"><a href="{$MODULE[2][linkurl]}message.php?action=send" target="_blank" rel="nofollow">商铺留言</a></li>
                            <a href="{$MODULE[2][linkurl]}message.php" class="btn Themebg mt-10" target="_blank" rel="nofollow">收到的询价单</a>
                        </ul>
                        <ul class="Control">
                            <li class="Themebghover"><a href="{$MODULE[2][linkurl]}{$DT[file_my]}?mid=6&action=add" target="_blank" rel="nofollow">发布采购单</a></li>
                            <li class="Themebghover"><a href="{DT_PATH}member/home.php" target="_blank" rel="nofollow">商铺管理</a></li>
                            <li class="Themebghover"><a href="{DT_PATH}member/my.php?mid=6" target="_blank" rel="nofollow">管理采购单</a></li>
                            <li class="Themebghover"><a href="{$MODULE[2][linkurl]}message.php?action=send" target="_blank" rel="nofollow">商铺留言</a></li>
                            <a href="{$MODULE[2][linkurl]}message.php" class="btn Themebg mt-10" target="_blank" rel="nofollow">发布的采购单</a>
                        </ul>                
     				</div>
                </div>
                <!--公告-->
                <div class="centantBox mt10">
                    <h3 class="jh_title clearfix">
                        <ul>
                            <li class="active">公告</li>
                        </ul>
                    </h3>
                     
                    <!--{tag("table=announce&condition=(totime=0 or totime>$today_endtime-86400)&areaid=$cityid&pagesize=3&order=listorder desc,addtime desc&target=_blank&class=an_li&template=list-announce")}-->
                     
                </div>
                 <!--统计数据-->
                 <div class="help-tab">
                    <div class="hd">
                        <ul class="clearfix">
                           
                            <li class="on">已发产品</li>
                            <li>入驻企业</li>
                        </ul>
                    </div>
                    <div class="bd num box4 mt10 pb-20 t-content OrangeFont">
                         <ul>
                             已发产品数：<li>{php echo number_format(242332333+($db->count($DT_PRE.'sell_5', 'status=3', 1800)));} </li>
                        </ul>
                        <ul>
                              累计入驻企业数：<li>{php echo $db->count($DT_PRE.'company', '1', 1800);}</li>
                        </ul>                
                    </div>
                </div>
                
                
        </div>
    </div>

<!--开始盖楼-->
<div id="floor" class="full xcmain">
    <div class="wrap">
        
        
        {php $mid=5}
        {php $child = get_maincat(0, $mid, 1);}
         {loop $child $i $c}
         
         <!--模块顶部广告-->
         	{if $i==0}
            <div class="cBanner pt-20 clearfix"><a class="f{$i+1}"></a>
                <a class="fl" href="#" target="_blank" rel="nofollow">
                <img class="img100" alt="" src="{DT_SKIN}ad/sssw.jpg" style="display: inline;">
                </a>
                <a class="fr" href="#" target="_blank" rel="nofollow">
                <img class="img100" alt="" src="{DT_SKIN}ad/banner9.jpg" style="display: inline;">
                </a>
            </div>
            {/if}
            
            {if $i==2}
            <div class="cBanner pt-20 clearfix"><a class="f{$i+1}"></a>
                <a class="fl" href="#" target="_blank" rel="nofollow">
                <img class="img100" alt="" src="{DT_SKIN}ad/sssw.jpg" style="display: inline;">
                </a>
                <a class="fr" href="#" target="_blank" rel="nofollow">
                <img class="img100" alt="" src="{DT_SKIN}ad/banner9.jpg" style="display: inline;">
                </a>
            </div>
            {/if}
            
            {if $i==4}
            <div class="cBanner pt-20 clearfix"><a class="f{$i+1}"></a>
                <a class="fl" href="#" target="_blank" rel="nofollow">
                <img class="img100" alt="" src="{DT_SKIN}ad/banner0.jpg" style="display: inline;">
                </a>
                <a class="fr" href="#" target="_blank" rel="nofollow">
                <img class="img100" alt="" src="{DT_SKIN}ad/banner2.gif" style="display: inline;">
                </a>
            </div>
            {/if}
            {if $i==6}
            <div class="cBanner pt-20 clearfix"><a class="f{$i+1}"></a>
                <a class="fl" href="#" target="_blank" rel="nofollow">
                <img class="img100" alt="" src="{DT_SKIN}ad/sssw.jpg" style="display: inline;">
                </a>
                <a class="fr" href="#" target="_blank" rel="nofollow">
                <img class="img100" alt="" src="{DT_SKIN}ad/banner9.jpg" style="display: inline;">
                </a>
            </div>
            {/if}
            {if $i==8}
            <div class="cBanner pt-20 clearfix"><a class="f{$i+1}"></a>
                <a class="fl" href="#" target="_blank" rel="nofollow">
                <img class="img100" alt="" src="{DT_SKIN}ad/sssw.jpg" style="display: inline;">
                </a>
                <a class="fr" href="#" target="_blank" rel="nofollow">
                <img class="img100" alt="" src="{DT_SKIN}ad/banner9.jpg" style="display: inline;">
                </a>
            </div>
            {/if}
            
            {if $i==10}
            <div class="cBanner pt-20 clearfix"><a class="f{$i+1}"></a>
                <a class="fl" href="#" target="_blank" rel="nofollow">
                <img class="img100" alt="" src="{DT_SKIN}ad/sssw.jpg" style="display: inline;">
                </a>
                <a class="fr" href="#" target="_blank" rel="nofollow">
                <img class="img100" alt="" src="{DT_SKIN}ad/banner9.jpg" style="display: inline;">
                </a>
            </div>
            {/if}
            {if $i==12}
            <div class="cBanner pt-20 clearfix"><a class="f{$i+1}"></a>
                <a class="fl" href="#" target="_blank" rel="nofollow">
                <img class="img100" alt="" src="{DT_SKIN}ad/banner0.jpg" style="display: inline;">
                </a>
                <a class="fr" href="#" target="_blank" rel="nofollow">
                <img class="img100" alt="" src="{DT_SKIN}ad/banner2.gif" style="display: inline;">
                </a>
            </div>
            {/if}
            {if $i==14}
            <div class="cBanner pt-20 clearfix"><a class="f{$i+1}"></a>
                <a class="fl" href="#" target="_blank" rel="nofollow">
                <img class="img100" alt="" src="{DT_SKIN}ad/sssw.jpg" style="display: inline;">
                </a>
                <a class="fr" href="#" target="_blank" rel="nofollow">
                <img class="img100" alt="" src="{DT_SKIN}ad/banner9.jpg" style="display: inline;">
                </a>
            </div>
            {/if}
            
     <!-- {$i+1}楼--> 
     
      <div class="building buildingNew {if $i%2==1}active{/if}" dataid="f{$i}">
        <div class="buildingBox ThemeFborderhover clearfix">
            <div class="left fl">
                <a href="{$MODULE[$mid][linkurl]}{$c[linkurl]}"><img src="{DT_SKIN}ad/class{$i}.jpg" alt=""></a>
            </div>
            <div class="content fl">
                <div class="top">
                    <h3 class="jh_title f14">
                        {$c[catname]}
                        <a href="{$MODULE[$mid][linkurl]}{$c[linkurl]}" target="_blank" class="Themefont fr f12">更多&gt;&gt;</a>
                        <p class="f12 overflow">热搜：
                              {php $sub = get_maincat($c[catid], $child, 1);}
              						{loop $sub $j $s}
                                {if $j<5 }
                                
                                 	{php $subs = get_maincat($s[catid], $sub, 1);}
                                        {loop $subs $k $m}
                                        
                                    	{if $k==0 }
                            <a target="_blank" href="{$MODULE[$mid][linkurl]}{$m[linkurl]}" title="{$m[catname]}">{$m[catname]}</a>						{/if}
                            		{/loop}
                           		{/if}
								{/loop}
                        </p>
                    </h3> 
                </div>
                <div class="bottom clearfix">
                   <div class="leftClass">
                   		{php $sub = get_maincat($c[catid], $child, 1);}
              			{loop $sub $j $s}
                        {if $j<4}
                        <ul class="overflow">
                             <!--热门的分类给li加active 如下-->
                          <li class="active"><a target="_blank" href="{$MODULE[$mid][linkurl]}{$s[linkurl]}">{$s[catname]}</a></li>							{php $subs = get_maincat($s[catid], $sub, 1);}
                                  {loop $subs $k $m}
                                            {if $k<3 }
                               <li> <a target="_blank" href="{$MODULE[$mid][linkurl]}{$m[linkurl]}" title="{$m[catname]}">{$m[catname]}</a>		</li>			{/if}
                                 {/loop}
                                      
                             </ul>
                         {/if}
                         	{/loop} 
               		</div>
                    <!--广告区域-->
                    <ul class="fr logoClass"> 
                          
                            <li>
                                <div class="imgBox">
                                    <a target="_blank" href="#" rel="nofollow">
                                    <img class="img100"  alt="" src="{DT_SKIN}ad/1.jpg" style="display: inline;"></a>
                                   
                                </div>
                            </li>
                            <li>
                                <div class="imgBox">
                                    <a target="_blank" href="#" rel="nofollow">
                                    <img class="img100"  alt="" src="{DT_SKIN}ad/1.jpg" style="display: inline;"></a>
                                   
                                </div>
                            </li>  
                            <li>
                                <div class="imgBox">
                                    <a target="_blank" href="#" rel="nofollow">
                                    <img class="img100"  alt="" src="{DT_SKIN}ad/1.jpg" style="display: inline;"></a>
                                   
                                </div>
                            </li>  
                            <li>
                                <div class="imgBox">
                                    <a target="_blank" href="#" rel="nofollow">
                                    <img class="img100"  alt="" src="{DT_SKIN}ad/1.jpg" style="display: inline;"></a>
                                   
                                </div>
                            </li>    
                                                  
                                                  
                    </ul> 
                </div> 
            </div>
        </div>
	  </div>
         {/loop}

        
    </div>
 
 </div>
    
<!--楼层结束分割-->
 
<!--资讯-->
<div class="ibox full">
    <div class="wrap">
    
    <div class="cBanner mt-20 clearfix">
    	<a href="#"><img src="{DT_SKIN}ad/cbanner2.jpg" /></a>
    </div>
        <div class="header">
            <h3>资讯快报</h3>
        </div>
        <div class="content">
        	<!--热门排行-->
            
        <!--{php $tags=tag("moduleid=21&condition=status=3 and addtime>$today_endtime-30*86400&areaid=$cityid&order=hits desc&pagesize=".$DT[page_rank]."&length=30&template=null");}-->	
            <div class="adimg fl"> 
            {loop $tags $i $t}
            	{if $i==0}
                <img src="{$t[thumb]}" width="200" height="220" alt="{$t[alt]}" /> 
                <span class="te"><a href="{$t[linkurl]}" target="_blank" title="{$t[alt]}">{$t[title]}</a>
                </span>
                {/if}
            {/loop}
            </div>
            <div class="rank-list fl">
                <ul>
                    {loop $tags $t}
                    <li><a href="{$t[linkurl]}" target="_blank" title="{$t[alt]}">{$t[title]}</a></li>
                    {/loop}
                </ul>
 			</div>
            <div class="dynamic cldl fl">
                <h4>山西要闻</h4>
                	<!--{php $tags=tag("moduleid=21&catid=916&condition=status=3&pagesize=5&datetype=3&order=addtime desc&target=_blank&template=null")}-->
                    
                    {loop $tags $i $t}
                    {if $i==0}
                    <dl>
                    	<dt><a class="a-img" href="{$t[linkurl]}">
                    		<img src="{$t[thumb]}" width="70" height="60" alt="{$t[alt]}" /></a> 
                   		</dt>
						<dd><strong class="te"><a href="{$t[linkurl]}"{if $target} target="{$target}"{/if} title="{$t[alt]}">{$t[title]}</a></strong>{dsubstr($t[introduce], 80, '...')}</dd>
                    </dl>
                    {/if}
                    {/loop}
					
                   <!--{tag("moduleid=21&catid=2064&condition=status=3&pagesize=5&datetype=3&order=addtime desc&target=_blank&template=list")}-->
     
            </div>
            <div class="dynamic cldl fl">
                <h4>企业新闻</h4>
                <!--{tag("table=news&condition=status=3 and level>0&pagesize=".$DT[page_comnews]."&datetype=3&order=addtime desc&target=_blank")}-->
                
            </div>
        </div>
    </div>
</div>

<div class="ibox full">
    <div class="wrap">
        <div class="Information pt-20">
                    信息索引（首字母）：
                    {loop $LETTER $L}
					<a href="{rewrite('sitemap/index.php?mid=5&letter='.$L)}"><span class="{if $letter==$L}L2{else}L1{/if}">&nbsp;{strtoupper($L)}&nbsp;</span></a>
					{/loop} 
         </div>
	</div>
</div>

<!--友情链接-->
<div class="ibox full">
    <div class="wrap">
        <div class="header">
            <h3>友情链接</h3>
            <span class="yl gray fr"><a href="{$EXT[link_url]}{rewrite('index.php?action=reg')}" target="_blank">在线申请链接</a>&#160;&#160;&#160;&#160;<a href="{DT_PATH}">请做好本站链接之后再申请 关键字"{$DT[sitename]}"，本站网址：{DT_PATH}</a></span>
        </div>
        <div class="friendlink">
       
			<ul class="clearfix lianjie">
 	{if $DT[page_logo]}
	<!--{tag("table=link&condition=status=3 and level>0 and thumb<>'' and username=''&areaid=$cityid&pagesize=".$DT['page_logo']."&order=listorder desc,itemid desc&lazy=$lazy&template=list-link&cols=9")}-->
	{/if}
	{if $DT[page_text]}
	<!--{tag("table=link&condition=status=3 and level>0 and thumb='' and username=''&areaid=$cityid&pagesize=".$DT['page_text']."&order=listorder desc,itemid desc&template=list-link&cols=9")}-->
	{/if}
</ul>
     
        </div>
    </div>
</div>
 
 <!--左侧楼层导航-->
 
 <div class="Floor" id="Floor">
    <div class="Themebg jh_title">行业导航</div>
    <ul>
        <li>
            <a class="f1" href="javascript:void(0)" onclick="clickA(1)">
                <div class="FloorLi">
                    <i class="iconfont icon0"></i><span class="Themebg">行业设备</span>
                </div>
                <div class="FloorLi">
                    <i class="iconfont icon1"></i><span class="Themebg">商务服务</span>
                </div>
            </a>
        </li>
        <li>
            <a class="f3" href="javascript:void(0)" onclick="clickA(3)">
                <div class="FloorLi">
                    <i class="iconfont icon2"></i><span class="Themebg cen">农业</span>
                </div>
                <div class="FloorLi">
                    <i class="iconfont icon3"></i><span class="Themebg cen">包装</span>
                </div>
            </a>
        </li>
        <li>
            <a class="f5" href="javascript:void(0)" onclick="clickA(5)">
                <div class="FloorLi">
                    <i class="iconfont icon4"></i><span class="Themebg">食品饮料</span>
                </div>
                <div class="FloorLi">
                    <i class="iconfont icon5"></i><span class="Themebg">五金工具</span>
                </div>
            </a>
        </li>
        <li>
            <a class="f7" href="javascript:void(0)" onclick="clickA(7)">
                <div class="FloorLi">
                    <i class="iconfont icon6"></i><span class="Themebg">家具家纺</span>
                </div>
                <div class="FloorLi">
                    <i class="iconfont icon7"></i><span class="Themebg cen">化工</span>
                </div>
            </a>
        </li>
        <li>
            <a class="f9" href="javascript:void(0)" onclick="clickA(9)">
                <div class="FloorLi">
                    <i class="iconfont icon8"></i><span class="Themebg">精细化学</span>
                </div>
                <div class="FloorLi">
                    <i class="iconfont icon9"></i><span class="Themebg">冶金矿产</span>
                </div>
            </a>
        </li>
        <li>
            <a class="f11" href="javascript:void(0)" onclick="clickA(11)">
                <div class="FloorLi">
                    <i class="iconfont icon10"></i><span class="Themebg">电工电气</span>
                </div>
                <div class="FloorLi">
                    <i class="iconfont icon11"></i><span class="Themebg cen">橡塑</span>
                </div>
            </a>
        </li>
        <li>
            <a class="f13" href="javascript:void(0)" onclick="clickA(13)">
                <div class="FloorLi">
                    <i class="iconfont icon12"></i><span class="Themebg">安全防护</span>
                </div>
                <div class="FloorLi">
                    <i class="iconfont icon13"></i><span class="Themebg">汽摩配件</span>
                </div>
            </a>
        </li>
        <li>
            <a class="f15" href="javascript:void(0)" onclick="clickA(15)">
                <div class="FloorLi">
                    <i class="iconfont icon14"></i><span class="Themebg">礼品饰品</span>
                </div>
                <div class="FloorLi">
                    <i class="iconfont icon15"></i><span class="Themebg">家用电器</span>
                </div>
            </a>
        </li>
     </ul>
</div>
{template 'footer'}